package cn.by.wms.dao;

//DAO: Data Access Object, Mapper

import cn.by.wms.entity.Product;
import cn.by.wms.entity.ProductQuery;
import cn.smart.core.annotation.PageX;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface ProductDao {

    @PageX
    List<Product> select(ProductQuery query);
    int insert(Product product);
    int BatchInsert(List<Product> products);
    int update(Product product);
    int delete(Integer id);


}
